from oaback import celery_app
from django.core.mail import send_mail
from django.conf import settings

@celery_app.task(name='send_mail_task')
def send_mail_task(email, message,subject):
    send_mail(subject=subject,  # 题目
              recipient_list=[email],  # 收件人
              message=message,  # 邮件内容
              from_email=settings.DEFAULT_FROM_EMAIL)  # 发件人
